package com.oa.gform.rebind;

import com.google.gwt.user.rebind.SourceWriter;

public class GeneratorHelper {

	/***
	 * Genera il costruttore
	 * @param sourceWriter
	 * @param typeName
	 * @param className
	 * @param methodContent
	 */
	public static void generateConstructor(SourceWriter sourceWriter,String typeName,String className,String methodContent) {
		sourceWriter.println("public " + className + "() { ");
		sourceWriter.indent();
		sourceWriter.println("super();");
		sourceWriter.println(methodContent);
		sourceWriter.outdent();
		sourceWriter.println("}");
	}
}
